/*
 * @Author: yangzonglong
 * @Date: 2021-03-01 13:18:46
 * @version: v1.0.0
 * @Descripttion:
 * @LastEditors: yangzonglong
 * @LastEditTime: 2021-08-18 15:29:40
 * @Auditor:
 */
import React, { useImperativeHandle, forwardRef } from 'react';

const defaultStyle = { padding: '8px 15px', width: '100%', background: '#fff' };
const lineStyle = { height: '1px', background: '#E4E7ED' };

const App = (props, ref) => {
  const { formItemProps } = props;

  useImperativeHandle(ref, () => {});
  
  return (
    <div {...formItemProps} style={defaultStyle}>
      <div style={{ ...lineStyle, ...formItemProps?.style }}></div>
    </div>
  );
};

export default forwardRef(App);
